import xadmin
from goods.models import GoodsType, IndexPromotionBanner,IndexGoodsBanner, IndexTypeGoodsBanner

from xadmin import views

xadmin.site.register(GoodsType)
xadmin.site.register(IndexGoodsBanner)
xadmin.site.register(IndexTypeGoodsBanner)
xadmin.site.register(IndexPromotionBanner)

# 可选主题
class BaseSetting():
    enable_themes = True
    use_bootswatch = True

xadmin.site.register(views.BaseAdminView,BaseSetting)